/*
 * Copyright 2010 - 2011, The PLDesktop Development Team
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 */

#ifndef PLJAVA_ATTRIBUTE_STACK_MAP_VERIFICATION_TYPE_INFO_H
#define PLJAVA_ATTRIBUTE_STACK_MAP_VERIFICATION_TYPE_INFO_H

namespace PLSDK {

/**
 * Class to hald stack map Verification Type Info in the stack map table.
 */
class PLJavaAttributeStackMapVerificationTypeInfo {
public:
    /**
     * The frame type of the stack map.
     */
    enum VerificationTypeInfo {
        /**
         * Top variable info.
         */
        ItemTop             = 0,
        /**
         * Integer variable info.
         */
        ItemInteger         = 1,
        /**
         * Float variable info.
         */
        ItemFloat           = 2,
        /**
         * Double variable info.
         */
        ItemDouble          = 3,
        /**
         * Long variable info.
         */
        ItemLong            = 4,
        /**
         * Null variable info.
         */
        ItemNull            = 5,
        /**
         * Uninitialized This variable info.
         */
        ItemUninitializedThis = 6,
        /**
         * Object Variable Info variable info.
         */
        ItemObject          = 7,
        /**
         * Uninitialized variable info.
         */
        ItemUninitialized   = 8
    };
    /**
     * Constructor.
     */
    PLJavaAttributeStackMapVerificationTypeInfo();
    /**
     * Get the Verification Type Info type that represent the code.
     *
     * @return The Verification Type Info type.
     */
    inline PLJavaAttributeStackMapVerificationTypeInfo::VerificationTypeInfo verificationTypeInfo();
protected:
    PLJavaAttributeStackMapVerificationTypeInfo::VerificationTypeInfo m_verificationTypeInfo;
};

PLJavaAttributeStackMapVerificationTypeInfo::VerificationTypeInfo PLJavaAttributeStackMapVerificationTypeInfo::verificationTypeInfo() {
    return m_verificationTypeInfo;
}

}

#endif
